package com.ad.advertiser.entity;

import java.util.Date;

import com.ad.common.entity.User;

/**
 * Ads entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Ads implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private String adName;
	private Integer platformId;
	private String directImg;
	private Date startTime;
	private Date endTime;
	private Integer adType;
	private String transmitUrl;
	private String adContent;
	private String require;
	private Date createTime;

	// Constructors

	/** default constructor */
	public Ads() {
	}

	/** minimal constructor */
	public Ads(User user, String adName, Integer platformId, Date startTime,
			Date endTime) {
		this.user = user;
		this.adName = adName;
		this.platformId = platformId;
		this.startTime = startTime;
		this.endTime = endTime;
	}

	/** full constructor */
	public Ads(User user, String adName, Integer platformId, String directImg,
			Date startTime, Date endTime, Integer adType, String transmitUrl,
			String adContent, String require, Date createTime) {
		this.user = user;
		this.adName = adName;
		this.platformId = platformId;
		this.directImg = directImg;
		this.startTime = startTime;
		this.endTime = endTime;
		this.adType = adType;
		this.transmitUrl = transmitUrl;
		this.adContent = adContent;
		this.require = require;
		this.createTime = createTime;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getAdName() {
		return this.adName;
	}

	public void setAdName(String adName) {
		this.adName = adName;
	}

	public Integer getPlatformId() {
		return this.platformId;
	}

	public void setPlatformId(Integer platformId) {
		this.platformId = platformId;
	}

	public String getDirectImg() {
		return this.directImg;
	}

	public void setDirectImg(String directImg) {
		this.directImg = directImg;
	}

	public Date getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getAdType() {
		return this.adType;
	}

	public void setAdType(Integer adType) {
		this.adType = adType;
	}

	public String getTransmitUrl() {
		return this.transmitUrl;
	}

	public void setTransmitUrl(String transmitUrl) {
		this.transmitUrl = transmitUrl;
	}

	public String getAdContent() {
		return this.adContent;
	}

	public void setAdContent(String adContent) {
		this.adContent = adContent;
	}

	public String getRequire() {
		return this.require;
	}

	public void setRequire(String require) {
		this.require = require;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}